package com.cloud.school.bus.teacherhelper.base.anim.swap3d;

import android.view.animation.Animation;

/**
 * * This class listens for the end of the first half of the animation. * It
 * then posts a new action that effectively swaps the views when the container *
 * is rotated 90 degrees and thus invisible.
 */
public class DisplayNextView implements Animation.AnimationListener {

	private Constants mConstants;
	private int mSwapView;

	public DisplayNextView(Constants constants, int swapView) {
		mConstants = constants;
		mSwapView = swapView;
	}

	public void onAnimationStart(Animation animation) {

	}

	public void onAnimationEnd(Animation animation) {
		mConstants.getViewGroup().post(new SwapViews(mConstants, mSwapView));
	}

	public void onAnimationRepeat(Animation animation) {

	}

}
